package com.service.imp;

import com.dao.UserDao;
import com.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.ManagedBean;
import javax.annotation.Resource;
import javax.inject.Inject;
import javax.inject.Named;

//@Service
//@ManagedBean
@Named
public class UserServiceImpl implements UserService {

    //@Autowired
    //@Resource(name = "myDao")
    @Inject
    UserDao userDao;

    @Override
    public void save() {
        userDao.save();
    }
}
